0173eea69a0aab503956d50b6a6aae63f2a143aa,demos/Ant/AppAntDemo1/src/org/lazarus/appantdemo1/Controls.java,jWebClient,onReceivedError,#WebView#number#String#String#,3372

Before Change


@Override
public  void onReceivedError(WebView view, int errorCode, String description, String failingUrl)  {
super.onReceivedError(view, errorCode, description, failingUrl);
controls.pOnWebViewStatus(PasObj,Const.WebView_OnError, description);
}

}

After Change


@Override
public  void onReceivedError(WebView view, int errorCode, String description, String failingUrl)  {
super.onReceivedError(view, errorCode, description, failingUrl);      
   if (errorCode == 401) {
       // alert to username and password
       // set it through the setHttpAuthUsernamePassword(...) 
	   controls.pOnWebViewStatus(PasObj, 401 , "login/password");
   }
   else{
       controls.pOnWebViewStatus(PasObj,Const.WebView_OnError, description);
   }
   
}